﻿<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<meta name="renderer" content="webkit|ie-comp|ie-stand">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
<meta http-equiv="Cache-Control" content="no-siteapp" />
<link rel="Bookmark" href="/favicon.ico" >
<link rel="Shortcut Icon" href="/favicon.ico" />
<!--[if lt IE 9]>
<script type="text/javascript" src="lib/html5shiv.js"></script>
<script type="text/javascript" src="lib/respond.min.js"></script>
<![endif]-->
<link rel="stylesheet" type="text/css" href="static/h-ui/css/H-ui.min.css" />
<link rel="stylesheet" type="text/css" href="static/h-ui.admin/css/H-ui.admin.css" />
<link rel="stylesheet" type="text/css" href="lib/Hui-iconfont/1.0.8/iconfont.css" />
<link rel="stylesheet" type="text/css" href="static/h-ui.admin/skin/default/skin.css" id="skin" />
<link rel="stylesheet" type="text/css" href="static/h-ui.admin/css/style.css" />
<!--[if IE 6]>
<script type="text/javascript" src="lib/DD_belatedPNG_0.0.8a-min.js" ></script>
<script>DD_belatedPNG.fix('*');</script>
<![endif]-->
<title>FullStack - Shop</title>
<meta name="keywords" content="H-ui.admin v3.0,H-ui网站后台模版,后台模版下载,后台管理系统模版,HTML后台模版下载">
<meta name="description" content="H-ui.admin v3.0，是一款由国人开发的轻量级扁平化网站后台模板，完全免费开源的网站后台管理系统模版，适合中小型CMS后台系统。">
</head>
<body>
<header class="navbar-wrapper">
	<div class="navbar navbar-fixed-top">
		<div class="container-fluid cl"> <a class="logo navbar-logo f-l mr-10 hidden-xs" href="">FullStack - User</a> 
			<span class="logo navbar-slogan f-l mr-10 hidden-xs">v1.0.0</span> 
			
			<a aria-hidden="false" class="nav-toggle Hui-iconfont visible-xs" href="javascript:;">&#xe667;</a>
			<!-- <nav class="nav navbar-nav">
				<ul class="cl">
					<li class="dropDown dropDown_hover"><a href="javascript:;" class="dropDown_A"><i class="Hui-iconfont">&#xe600;</i> 新增 <i class="Hui-iconfont">&#xe6d5;</i></a>
						<ul class="dropDown-menu menu radius box-shadow">
							<li><a href="javascript:;" onclick="article_add('添加资讯','article-add.html')"><i class="Hui-iconfont">&#xe616;</i> 资讯</a></li>
							<li><a href="javascript:;" onclick="picture_add('添加资讯','picture-add.html')"><i class="Hui-iconfont">&#xe613;</i> 图片</a></li>
							<li><a href="javascript:;" onclick="product_add('添加资讯','product-add.html')"><i class="Hui-iconfont">&#xe620;</i> 产品</a></li>
							<li><a href="javascript:;" onclick="member_add('添加用户','member-add.html','','510')"><i class="Hui-iconfont">&#xe60d;</i> 用户</a></li>
						</ul>
					</li>
				</ul>
			</nav> -->
		
		<nav id="Hui-userbar" class="nav navbar-nav navbar-userbar hidden-xs">
			<ul class="cl">
				<!-- <li>超级管理员</li> -->
				<li class="dropDown dropDown_hover">
					<a href="#" class="dropDown_A"><span id="userName"></span> <i class="Hui-iconfont">&#xe6d5;</i></a>
					<ul class="dropDown-menu menu radius box-shadow">
						<li><a href="javascript:;" onClick="myselfinfo()">个人信息</a></li>
						<li><a href="javascript:;" onClick="changePassword()">修改密码</a></li>
						<!-- <li><a target="_blank" href="//shang.qq.com/wpa/qunwpa?idkey=ac0ffae1cb46d65bd3df739eb24269a1c81aa818da28bfe41ce48a570c5b1292"><img border="0" src="//pub.idqqimg.com/wpa/images/group.png" alt="仁之方" title="仁之方"></a>
						</li> -->
						<!-- <li><a href="javascript:;" onClick="">切换账户</a></li>-->
						<li><a href="javascript:;" onClick="logOut()">退出</a></li>
				</ul>
			</li>
				<!-- <li id="Hui-msg"> <a href="#" title="消息"><span class="badge badge-danger">1</span><i class="Hui-iconfont" style="font-size:18px">&#xe68a;</i></a> </li> -->
				<li id="Hui-skin" class="dropDown right dropDown_hover"> <a href="javascript:;" class="dropDown_A" title="换肤"><i class="Hui-iconfont" style="font-size:18px">&#xe62a;</i></a>
					<ul class="dropDown-menu menu radius box-shadow">
						<li><a href="javascript:;" data-val="default" title="默认（黑色）">默认（黑色）</a></li>
						<li><a href="javascript:;" data-val="blue" title="蓝色">蓝色</a></li>
						<li><a href="javascript:;" data-val="green" title="绿色">绿色</a></li>
						<li><a href="javascript:;" data-val="red" title="红色">红色</a></li>
						<li><a href="javascript:;" data-val="yellow" title="黄色">黄色</a></li>
						<li><a href="javascript:;" data-val="orange" title="橙色">橙色</a></li>
					</ul>
				</li>
			</ul>
		</nav>
	</div>
</div>
</header>
<aside class="Hui-aside">
	<div class="menu_dropdown bk_2">
		<dl id="menu-system">
			<dt><i class="Hui-iconfont">&#xe62e;</i> 系统管理 <i class="Hui-iconfont menu_dropdown-arrow">&#xe6d5;</i></dt>
			<dd>
				<ul>
					<li><a data-href="auth-list.html" data-title="权限列表" href="javascript:;">权限列表</a></li>
					<li><a data-href="role-list.html" data-title="角色列表" href="javascript:;">角色列表</a></li>
					<li><a data-href="office-list.html" data-title="机构管理" href="javascript:;">机构管理</a></li>
					<li><a data-href="office-user-list.html" data-title="机构用户" href="javascript:;">机构用户</a></li>
					<li><a data-href="cms-list.html" data-title="cms管理" href="javascript:;">cms管理</a></li>
					<li><a data-href="dict-list.html" data-title="字典管理" href="javascript:;">字典管理</a></li>
			</ul>
		</dd>
	</dl>
		<dl id="menu-member">
			<dt><i class="Hui-iconfont">&#xe611;</i> 顾客管理 <i class="Hui-iconfont menu_dropdown-arrow">&#xe6d5;</i></dt>
			<dd>
				<ul>
					<li><a data-href="member-list.html" data-title="顾客管理" href="javascript:;">顾客管理</a></li>
					<li><a data-href="" data-title="评论管理" href="javascript:;">--评论管理</a></li>
					<li><a data-href="" data-title="活动管理" href="javascript:;">--活动管理</a></li>
			</ul>
		</dd>
	</dl>
		<dl id="menu-goods">
			<dt><i class="Hui-iconfont">&#xe620;</i> 商品管理 <i class="Hui-iconfont menu_dropdown-arrow">&#xe6d5;</i></dt>
			<dd>
				<ul>
					<li><a data-href="goods-temp-list.html" data-title="商品类型" href="javascript:;">商品类型</a></li>
					<li><a data-href="goods-list.html" data-title="商品管理" href="javascript:;">商品管理</a></li>
			</ul>
		</dd>
	</dl>
		<dl id="menu-goods">
			<dt><i class="Hui-iconfont">&#xe687;</i> 订单管理 <i class="Hui-iconfont menu_dropdown-arrow">&#xe6d5;</i></dt>
			<dd>
				<ul>
					<li><a data-href="order-list.html" data-title="订单管理" href="javascript:;">订单管理</a></li>
					<li><a data-href="evaluate-list.html" data-title="评价管理" href="javascript:;">评价管理</a></li>
					<li><a data-href="" data-title="退款管理" href="javascript:;">--退款管理</a></li>
			</ul>
		</dd>
	</dl>
		<dl id="menu-report">
			<dt><i class="Hui-iconfont">&#xe61e;</i> 报表统计 <i class="Hui-iconfont menu_dropdown-arrow">&#xe6d5;</i></dt>
			<dd>
				<ul>
					<li><a data-href="report-list.html" data-title="销售统计" href="javascript:;">销售总额统计</a></li>
					<li><a data-href="report-goods.html" data-title="商品销售统计" href="javascript:;">商品销售总额统计</a></li>
			</ul>
		</dd>
	</dl>
		<dl id="menu-report">
			<dt><i class="Hui-iconfont">&#xe61e;</i> 跑腿代办 <i class="Hui-iconfont menu_dropdown-arrow">&#xe6d5;</i></dt>
			<dd>
				<ul>
					<li><a data-href="agency-list.html" data-title="代办列表" href="javascript:;">代办列表</a></li>
			</ul>
		</dd>
	</dl>
		<dl id="menu-report">
			<dt><i class="Hui-iconfont">&#xe61e;</i> 积分管理 <i class="Hui-iconfont menu_dropdown-arrow">&#xe6d5;</i></dt>
			<dd>
				<ul>
					<li><a data-href="score-goods-list.html" data-title="积分商品" href="javascript:;">积分商品</a></li>
					<li><a data-href="score-order-list.html" data-title="兑换列表" href="javascript:;">兑换列表</a></li>
			</ul>
		</dd>
	</dl>
		<dl id="menu-report">
			<dt><i class="Hui-iconfont">&#xe61e;</i> 意见反馈 <i class="Hui-iconfont menu_dropdown-arrow">&#xe6d5;</i></dt>
			<dd>
				<ul>
					<li><a data-href="feedback-list.html" data-title="反馈列表" href="javascript:;">反馈列表</a></li>
			</ul>
		</dd>
	</dl>
</div>
</aside>
<div class="dislpayArrow hidden-xs"><a class="pngfix" href="javascript:void(0);" onClick="displaynavbar(this)"></a></div>
<section class="Hui-article-box">
	<div id="Hui-tabNav" class="Hui-tabNav hidden-xs">
		<div class="Hui-tabNav-wp">
			<ul id="min_title_list" class="acrossTab cl">
				<li class="active">
					<span title="我的桌面" data-href="welcome.html">我的桌面</span>
					<em></em></li>
		</ul>
	</div>
		<div class="Hui-tabNav-more btn-group"><a id="js-tabNav-prev" class="btn radius btn-default size-S" href="javascript:;"><i class="Hui-iconfont">&#xe6d4;</i></a><a id="js-tabNav-next" class="btn radius btn-default size-S" href="javascript:;"><i class="Hui-iconfont">&#xe6d7;</i></a></div>
</div>
	<div id="iframe_box" class="Hui-article">
		<div class="show_iframe">
			<div style="display:none" class="loading"></div>
			<iframe scrolling="yes" frameborder="0" src="welcome.html"></iframe>
	</div>
</div>
</section>

<div class="contextMenu" id="Huiadminmenu">
	<ul>
		<li id="closethis">关闭当前 </li>
		<li id="closeall">关闭全部 </li>
</ul>
</div>
<!--_footer 作为公共模版分离出去-->
<script type="text/javascript" src="lib/jquery/1.9.1/jquery.min.js"></script> 
<script type="text/javascript" src="lib/layer/2.4/layer.js"></script>
<script type="text/javascript" src="static/h-ui/js/H-ui.min.js"></script>
<script type="text/javascript" src="static/h-ui.admin/js/H-ui.admin.js"></script> <!--/_footer 作为公共模版分离出去-->
<script type="text/javascript" src="static/h-ui.admin/js/common.js"></script>

<!--请在下方写此页面业务相关的脚本-->
<script type="text/javascript" src="lib/jquery.contextmenu/jquery.contextmenu.r2.js"></script>
<script type="text/javascript" src="lib/jquery.validation/1.14.0/jquery.validate.js"></script>
<script type="text/javascript" src="lib/jquery.validation/1.14.0/validate-methods.js"></script>
<script type="text/javascript" src="lib/jquery.validation/1.14.0/messages_zh.js"></script>
<script type="text/javascript">
$(function(){
	//var token = $.cookie("token");
	//var url = "/user/info?token="+token;
	//var url = "/user/info";
	//common.getData(url,function(data){
	//	$("#userName").html(data.result.name);
	//	common.initCurrentUser(data.result);
	//});
});
/*个人信息*/
function myselfinfo(){
	layer.open({
		type: 1,
		area: ['400px','300px'],
		fix: false, //不固定
		maxmin: true,
		shade:0.4,
		title: '个人信息',
		content: '<div><table class="table table-border table-bordered table-bg mt-20">\
		<tbody>\
			<tr>\
				<td width="30%">名称</td>\
				<td>'+common.currentUser.name+'</td>\
			</tr>\
			<tr>\
				<td>工号</td>\
				<td>'+common.currentUser.code+'</td>\
			</tr>\
			<tr>\
				<td>联系方式</td>\
				<td><input id="contactWay" name="contactWay" type="text" value="'+common.currentUser.contactWay+'"></td>\
			</tr>\
			<tr>\
				<td>最近登录时间</td>\
				<td>'+common.formatDate(common.currentUser.lastLoginTime)+'</td>\
			</tr>\
			<tr>\
				<td>&nbsp;</td>\
				<td><input class="btn btn-primary radius" type="button" onClick="updateInfo();" value="&nbsp;&nbsp;提交&nbsp;&nbsp;">\
					<input class="btn btn-primary radius" type="button" onClick="closeInfo();" value="&nbsp;&nbsp;取消&nbsp;&nbsp;"></td>\
			</tr>\
		</tbody>\
	</table></div>'
	});
}
//修改个人信息
function updateInfo(){
	var contactWay = $("#contactWay").val();
	var url = "/user/update";
	var data={contactWay:contactWay};
	common.postData(url,data,function(data){
		common.initCurrentUser(data.result);
		alert("修改成功");
		closeInfo();
	});
}
function changePassword(){
	layer.open({
		type: 1,
		area: ['400px','300px'],
		fix: false, //不固定
		maxmin: true,
		shade:0.4,
		title: '修改密码',
		content: '<div><form action="" method="post" class="form form-horizontal" id="demoform-2" novalidate="novalidate">\
			<table class="table table-border table-bordered table-bg mt-20">\
				<tbody>\
					<tr>\
						<td>旧密码</td>\
						<td><input id="password" name="password" type="password" value=""></td>\
					</tr>\
					<tr>\
						<td>新密码</td>\
						<td><input id="newPassword" name="newPassword" type="password" value=""></td>\
					</tr>\
					<tr>\
						<td>确认新密码</td>\
						<td><input id="newPassword2" name="newPassword2" type="password" value=""></td>\
					</tr>\
					<tr>\
						<td>&nbsp;</td>\
						<td><input class="btn btn-primary radius" type="button" onClick="updatePassword();" value="&nbsp;&nbsp;提交&nbsp;&nbsp;">\
							<input class="btn btn-primary radius" type="button" onClick="closeInfo();" value="&nbsp;&nbsp;取消&nbsp;&nbsp;"></td>\
					</tr>\
				</tbody>\
			</table></form></div>'
	});
}
//修改个人信息
function updatePassword(){
	var password = $("#password").val();
	var newPassword = $("#newPassword").val();
	var newPassword2 = $("#newPassword2").val();
	if(common.required(password,"旧密码必填")||common.required(newPassword,"新密码必填")||common.required(newPassword2,"确认新密码必填")){
		return;
	}
	if(newPassword != newPassword2){
		common.alertX("两次密码输入不一致");
		return;
	}

	var url = "/user/updatePassword";
	var data={password:password,newPassword:newPassword};
	common.postData(url,data,function(data){
		common.initCurrentUser(data.result);
		common.alertX("修改成功");
		closeInfo();
	});
}
function closeInfo(){
	$(".layui-layer-close1").click();
}
//退出登录
function logOut(){
	$.cookie(common.cookieKey, null); 
	window.location.href=common.htmlPath+"/login.html";
}

/*资讯-添加*/
function article_add(title,url){
	var index = layer.open({
		type: 2,
		title: title,
		content: url
	});
	layer.full(index);
}
/*图片-添加*/
function picture_add(title,url){
	var index = layer.open({
		type: 2,
		title: title,
		content: url
	});
	layer.full(index);
}
/*产品-添加*/
function product_add(title,url){
	var index = layer.open({
		type: 2,
		title: title,
		content: url
	});
	layer.full(index);
}
/*用户-添加*/
function member_add(title,url,w,h){
	layer_show(title,url,w,h);
}


</script> 

</body>
</html>